package net.neiquan.neiquandemowithkf.fragment;

import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;


import net.neiquan.neiquandemowithkf.R;
import net.neiquan.neiquandemowithkf.utils.ResourcesUtils;
import net.neiquanlib.base.AppBaseFragment;

import butterknife.ButterKnife;
import butterknife.InjectView;


/**
 * 用户协议
 * 作者 ： hjb
 * 时间 ： 2016/7/20.
 */

public class ProtocolFragment extends AppBaseFragment {
    @InjectView(R.id.text)
    TextView mText;

    @Override
    public View initRootView() {
        rootView = mInflater.inflate(R.layout.fragment_protocol, null);
        ButterKnife.inject(this, rootView);
        return rootView;
    }

    @Override
    public void setViews() {
        setTitleTv("用户协议");
        String assets = ResourcesUtils.readAssets("protocol.txt");
        if (!TextUtils.isEmpty(assets)) {
            mText.setText(assets);
        }
    }

    @Override
    public void initData() {

    }
}
